<?php

namespace app\model\music;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 音乐类型
 */
class MusicTypeModel extends BaseModel
{
    protected $name = 'music_type';

    /**
     * 音乐
     * @return HasMany
     */
    public function Music(): HasMany
    {
        return $this->hasMany(MusicModel::class,'type_id');
    }
}